const KoaRouter = require('@koa/router')
const { create, queryJournalByTime, queryAllJournal, updateJournal } = require('../controller/journalController.js')
const { verifyAuth } = require('../middleware/loginMiddleware.js')
const journalRouter = new KoaRouter({prefix:'/journal'})

journalRouter.post('/addjournal' , create)

journalRouter.post('/query_journal' , queryJournalByTime)

journalRouter.post('/getAllJournal' , queryAllJournal)

journalRouter.post('/update' , updateJournal)

module.exports = journalRouter